{% extends 'base.html' %}

{% load i18n %}

{% block content %}
<div class="content">
  <h1><a href="/">{% trans "lomoo" %} &para;</a></h1>
  <p>{% trans "Welcome to lomoo." %}</p>
  {% if pod %}
  <h2>{% trans "Picture Of the Day" %}</h2>
  <div class="pod_box">
    <div class="left">
      <a href="/picture/{{ pod.key.id }}">
        <img src="/picture/{{ pod.key.id }}_t.jpg" alt="{{ pod.title }}"/>
      </a>
    </div>
    <div class="desc">
      <a href="/picture/{{ pod.key.id }}">{{ pod.title }}</a>
      <div>{{ pod.submitter.nickname }}</div>
      <div>{{ pod.submitted_date|date:"Y.m.d" }}</div>
      {{ pod.caption|linebreaks }}
      <div class="tags">
        {% for tag in pod.tags %}
        {% if tag %}<a href="/tag/{{ tag }}" class="tag">{{ tag }}</a>{% endif %}
        {% endfor %}
      </div>
    </div>
  </div>
  {% endif %}
  <h2>{% trans "Explore" %}</h2>
  <p><a href="/picture">{% trans "just suprise me" %}</a></p>
</div>
<div class="side">
  {% include 'user_link.html' %}
  <ul class="nav">
    <li class="feed"><a href="/feed">{% trans "subscribe" %}</a></li>
    {% for lang in LANGUAGES %}
    {% ifnotequal lang.0 LANGUAGE_CODE %}{# request or settings.py. situation varies. #}
    <li><a href="/i18n/setlang/?language={{ lang.0 }}">{{ lang.1 }}</a></li>
    {% endifnotequal %}
    {% endfor %}
  </ul>
</div>
{% endblock %}

